package chixing.day15.homework.work4;

public class Phone {
    private String phoneBrand;
    private String phoneName;
    private int phonePrice;

    public Phone(String phoneBrand, String phoneName, int phonePrice) {
        this.phoneBrand = phoneBrand;
        this.phoneName = phoneName;
        this.phonePrice = phonePrice;
    }

    public String getPhoneBrand() {
        return phoneBrand;
    }

    public void setPhoneBrand(String phoneBrand) {
        this.phoneBrand = phoneBrand;
    }

    public String getPhoneName() {
        return phoneName;
    }

    public void setPhoneName(String phoneName) {
        this.phoneName = phoneName;
    }

    public int getPhonePrice() {
        return phonePrice;
    }

    public void setPhonePrice(int phonePrice) {
        this.phonePrice = phonePrice;
    }

    @Override
    public String toString() {
        return "Phone{" +
                "phoneBrand='" + phoneBrand + '\'' +
                ", phoneName='" + phoneName + '\'' +
                ", phonePrice=" + phonePrice +
                '}';
    }
}
